package com.cjg.Class;

import java.lang.annotation.ElementType;

public class demo03 {
    public static void main(String[] args) {
        Class c1 = Object.class; // 类
        Class c2= Comparable.class;//接口
        Class c3 =String[].class;//一维数组
        Class c4 =String[][].class;//二维数组
        Class c5 =Deprecated.class;//注解
        Class c6 = ElementType.class;//枚举
        Class c7  =Integer.class;//基本数据类型
        Class c8 =void.class;//空
        Class c9 =Class.class;//Class

        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(c6);
        System.out.println(c7);
        System.out.println(c8);
        System.out.println(c9);

        //元素类型 和维度一样就是一个class
        String[] a=new String[1000];
        String[] b=new String[1];
        System.out.println(a.getClass().hashCode());
        System.out.println(b.getClass().hashCode());



    }
}
